-- GENERATED SPELL FOR [Starving Bog Lord] --


function spell0_19519(pUnit, Event) --@Choking Vines,n/a--
pUnit:FullCastSpellOnTarget(35244,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19519', 18000, 1)
end

function spell1_19519(pUnit, Event) --@War Stomp,n/a--
pUnit:FullCastSpellOnTarget(35238,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19519', 595, 1)
end

function Sorts_19519(pUnit, Event)
local choix_sorts_19519 = math.random(0, 1)
if choix_sorts_19519 == 0 then
pUnit:RegisterEvent('spell0_19519', 1, 1)
end
if choix_sorts_19519 == 1 then
pUnit:RegisterEvent('spell1_19519', 1, 1)
end
end

function mob19519_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19519', math.random(1500, 3000), 1)
end

function mob19519_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19519_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19519_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19519, 1, 'mob19519_Action')
RegisterUnitEvent(19519, 2, 'mob19519_Leave')
RegisterUnitEvent(19519, 3, 'mob19519_Kill')
RegisterUnitEvent(19519, 4, 'mob19519_Die')
